{extend name="public:common_index"/}
{block name="main"}
    <div class="panel panel-default">
        <div class="panel-heading">
            <h3 class="panel-title"><i class="fa fa-list"></i> {$title}</h3>
        </div>
        <div class="panel-body">
            <div class="navbar navbar-default">
                <form action="" id="search-form2" class="navbar-form form-inline" method="get" onsubmit="return false">
                    <div class="form-group">

                        <label class="control-label" for="input-order-id">下单用户ID</label>
                        <div class="input-group">
                            <input type="text" name="uuid" value="{$Think.get.uuid}" placeholder="下单用户ID"
                                   class="form-control">
                        </div>
                        <label class="control-label" for="input-order-id">接单用户ID</label>
                        <div class="input-group">
                            <input type="text" name="sd" value="{$Think.get.sd}" placeholder="接单用户ID"
                                   class="form-control">
                        </div>
                        <label class="control-label" for="input-order-id">技能</label>
                        {:arr2select('skill_id',$skills,'全部',input('skill_id'),'skill_id','skill_name')}
                        <label class="control-label" for="input-order-id">状态</label>
                        {:arr4select('status',$status,'全部',input('status'),'id','name')}
                        <div class="form-group">
                            <label class="control-label" for="input-order-id">下单时间筛选</label>
                            <div class="input-group">
                                <input type="text" name="start" value="{$Think.get.start}" placeholder="选择开始时间"
                                       class="form-control timepicker">
                            </div>
                        </div>
                        <div class="form-group">
                            <div class="input-group">
                                <input type="text" name="end" value="{$Think.get.end}" placeholder="选择结束时间"
                                       class="form-control timepicker">
                            </div>
                        </div>


                        <button type="submit" onclick="javascript:document.getElementById('search-form2').submit();"
                                id="button-filter search-order" class="btn btn-primary"><i class="fa fa-search"></i> 筛选
                        </button>
                        <br />
                        <label class="control-label">订单总金额:{$total}&nbsp&nbsp&nbsp完成订单数量:{$finish}
                            &nbsp&nbsp&nbsp进行中订单数量:{$hand}
                            &nbsp&nbsp&nbsp废弃订单数量:{$wrong}
                        </label>
                    </div>

                    <!--<a href="{:url('examiner_batch')}" class="btn btn-primary pull-right"><i class="fa fa-folder-open-o"></i>批量导入</a>-->
                </form>
            </div>
            <div id="ajax_return">
                <form method="post" enctype="multipart/form-data" target="_blank" id="form-order">
                    <div class="table-responsive">
                        <table class="table table-bordered table-hover">
                            <thead>
                            <tr>
                                <td>订单号</td>
                                <td>下单人ID</td>
                                <td>下单人</td>
                                <td>接单人ID</td>
                                <td>接单人</td>
                                <td>技能名称</td>
                                <td>订单总金额</td>
                                <td>下单备注</td>
                                <td>下单时间</td>
                                <td>订单状态</td>
                            </tr>
                            </thead>
                            <tbody>
                            <!-- 列表循环开始 -->
                            {volist name="rows" id="row" key="key"}
                            <tr>
                                <td>{$row.order_id}</td>
                                <td>{$row.uuid}</td>
                                <td>{$row.nick_name}</td>
                                <td>{$row.u_name}</td>
                                <td>{$row.sd}</td>
                                <td>{$row.skill_name}</td>
                                <td>{$row.price}</td>
                                <td>{$row.remark}</td>
                                <td>{$row.create_time}</td>
                                <td>{$row.status_text}</td>

                            </tr>
                            {/volist}
                            <!-- 列表循环结束 -->
                            </tbody>
                        </table>
                    </div>
                </form>
            </div>
            <div id='pagerarea'>{$pageHTML}</div>
        </div>
    </div>
{/block}

{block name="js"}
<script>
    $(function () {

        var type   = "{$Think.get.type}";
        if(type != ''){
            $('#type'+type).attr('selected',true)
        }

    })

</script>



{/block}



